<!-- 头部 开始 -->
<div class="layui-fluid top_nav" id="top_nav">
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-md2 layui-col-xs6">
                智者，善用搜索~
            </div>
            <div class="layui-col-md2 layui-col-xs2">
                <ul class="micuer_smaill_drop_down_nav">
                    <li>
                        <a href="javascript:;">
                        查看更多
                        </a>
                    </li>
                    {foreach $nav  as $k => $v}
                        {if $v.type=='nav_top'}
                        <li>
                            <a href="{$v.link}" {if $v.target="=1"} target="_blank"{/if}>
                            {$v.name}
                            </a>
                        </li>
                        {/if}

                    {/foreach}
                </ul>
            </div>
            {//*****************************************************************}
            {if !isset($index_user)}
            <div class="layui-col-md1 layui-col-xs6 fr">
                Hi,<a href="{:url('User/login')}">请登录</a>
            </div>
            <div class="layui-col-md1 layui-col-xs6 fr">
               <a href="{:url('User/register')}">注册账号</a>
            </div>
            <div class="layui-col-md1 layui-col-xs6 fr">
                <a href="javascript:;">找回密码</a>
            </div>
            {else/}
            {//*****************************************************************}
            <div class="layui-col-md1 layui-col-xs6 fr" id="Ucenter">
                <a href="{:url('User/index')}"><i class="layui-icon layui-icon-username"></i>个人中心</a>
            </div>
                <dl class="SubTopNav layui-col-md1 layui-col-xs6 fr">
                    <!--如果是后台管理员则跳转后台-->
                    {if $index_user.is_admin ==1}
                    <dd><a href="{:url('AdminAdmin/index')}">后台管理</a></dd>
                    {/if}
                    <dd><a href="{:url('Article/create')}">发文章</a></dd>
                    <dd><a href="{:url('News/create')}">发动态</a></dd>
                    <hr>
                    <dd><a href="{:url('Uarticle/index')}">我的文章</a></dd>
                    <dd><a href="{:url('News/index')}">我的动态</a></dd>
                    <dd><a href="{:url('User/info')}">个人设置</a></dd>
                    <dd><a href="javascript:;" onclick="logout()">退 &nbsp;&nbsp;出</a></dd>
                </dl>
            {/if}
            {//*****************************************************************}
        </div>
    </div>
</div>
<div class="layui-header header  layui-hide-xs">
    <div class="layui-container    h64 layui-row">
        <a  class="logo layui-col-md2 layui-col-xs6" href="/" title="{:config('web.web_title')}">
            {if config('web.logoIndex')}
            <img src="{:config('web.logoIndex')}" alt="">
            {else /}
            <img src="{:config('web.cdn')}/static/images/logo.png" alt="">
            {/if}
        </a>
        <ul class="layui-nav layui-col-md9 layui-col-xs12 fl" lay-filter="top_nav">
            {foreach $nav  as $k => $v}
            {if $v.type=='top'}
                {if $v.child==[]}
                    <li class="layui-nav-item {if request()->controller('true') =='index'}selected{/if} fl">
                        <a href="{$v.link}" {if $v.target="=1"} target="_blank"{/if}>
                        <!--<i class="layui-icon layui-icon-home"></i>-->
                        {$v.name}
                        </a>
                    </li>
                {else /}
                    <li class="layui-nav-item fl">
                        <a href="javascript:;">
                            {$v.name}<span class="layui-nav-more"></span></a>
                        <dl class="layui-nav-child "> <!-- 二级菜单 -->
                            {foreach $v.child as $vv}
                            <dd><a class="shild-a" href="{$vv.link}" {if $vv.target="=1"} target="_blank"{/if}>{$vv.name}</a></dd>
                            {/foreach}
                        </dl>
                    </li>
                {/if}
            {/if}
            {/foreach}
            <li class="layui-nav-item userlogin fr">
                <a href="javascript:;" onclick="open_search_panl()" title="点击搜索">
                    <i class="layui-icon layui-icon-search searchIcon"></i>
                </a>
            </li>
        </ul>
    </div>
</div>
<!-- 头部 结束 -->
<!-- 移动端导航 开始 -->
<div class="touchNav layui-fluid layui-hide-sm layui-hide-md layui-hide-lg">
    <div class="layui-row">
        <div class="layui-col-xs3">
            <a href="/" class="touchLogo">
                <i class="layui-icon layui-icon-home"></i>
            </a>
            <a href="javascript:;" onclick="history.go(-1)" class="touchLogo">
                <i class="layui-icon layui-icon-left"></i>
            </a>
        </div>

        <div class="layui-col-xs7">
            <form class="layui-form"  method="get" action="{:url('index/search')}">
                    <input type="text"
                           name="keywords"
                           placeholder="输入关键词搜索"
                           autocomplete="off"
                           class="layui-input touchSearch">
            </form>
        </div>
        <div class="layui-col-xs2 fr" id="topMenu">
            <i class="layui-icon layui-icon-slider touchMenu"></i>
        </div>
    </div>
    <div class="touchNavList none">
        <div class="layui-container">
            <h3 class="touchh3">菜单列表</h3>
            <div class="layui-row">
                <div class="layui-col-xs2">
                    <a href="/" class="touchItem">
                        <img class="touchIcon" src="{:config('web.cdn')}/static/images/icon_shouye.png" alt="">
                    </a>
                    <span class="touchIconTitle">首页</span>
                </div>
                <div class="layui-col-xs2">
                    <a href="{:url('Livehelper/index')}" class="touchItem">
                        <img class="touchIcon" src="{:config('web.cdn')}/static/images/music.png" alt="">
                    </a>
                    <span class="touchIconTitle">助手</span>
                </div>
                <div class="layui-col-xs2">
                    <a href="{:url('Inews/index')}" class="touchItem">
                        <img class="touchIcon" src="{:config('web.cdn')}/static/images/dongtai.png" alt="">
                    </a>
                    <span class="touchIconTitle">动态</span>
                </div>
                <div class="layui-col-xs2">
                    <a href="{:url('Download/index')}" class="touchItem">
                        <img class="touchIcon" src="{:config('web.cdn')}/static/images/xiazai.png" alt="">
                    </a>
                    <span class="touchIconTitle">下载</span>
                </div>
                <div class="layui-col-xs2">
                    <a href="{:url('tools/index')}" class="touchItem">
                        <img class="touchIcon" src="{:config('web.cdn')}/static/images/gongju.png" alt="">
                    </a>
                    <span class="touchIconTitle">工具</span>
                </div>
                <div class="layui-col-xs2">
                    <a href="{:url('Liuyanban/index')}" class="touchItem">
                        <img class="touchIcon" src="{:config('web.cdn')}/static/images/video.png" alt="">
                    </a>
                    <span class="touchIconTitle">视频教程</span>
                </div>

                <div class="layui-col-xs2">
                    <a href="{:url('User/login')}" class="touchItem">
                        <img class="touchIcon" src="{:config('web.cdn')}/static/images/denglu.png" alt="">
                    </a>
                    <span class="touchIconTitle">登录</span>
                </div>

                {if $index_user.is_admin ==1}
                <div class="layui-col-xs2">
                    <a href="{:url('AdminAdmin/index')}" class="touchItem">
                        <img class="touchIcon" src="{:config('web.cdn')}/static/images/denglu.png" alt="">
                    </a>
                    <span class="touchIconTitle">总后台</span>
                </div>
                {/if}


            </div>
            <div class="m_toolbar_left_app_btn"><a href="http://micuer.com">更多精彩，访问Pc端页面</a></div>
            <p class="m_toolbar_left_copyright">Copyright © 1999-2020, micuer.com, All Rights Reserved</p>
        </div>
    </div>
</div>
<!-- 移动端导航 结束 -->